package com.example.shopdemo.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author ：Anitaxiaofeng
 * @description：微信用户实体类用来接收昵称openid等用户信息
 * @create 2018-01-31
 **/
@Data
@ToString
public class WeiXinUser implements Serializable {

    private static final long serialVersionUID = 20180204L;



    // openId 标识该公众号下面的该用户的唯一ID
    @JsonProperty("openid")
    private String openId;

    //用户昵称
    @JsonProperty("nickname")
    private String nickName;

    //性别
    @JsonProperty("sex")
    private String sex;

    //省份
    @JsonProperty("province")
    private String province;

    //城市
    @JsonProperty("city")
    private String city;

    //区
    @JsonProperty("country")
    private String country;

    //头像图片地址
    @JsonProperty("headimgurl")
    private String headimgurl;

    //语言
    @JsonProperty("language")
    private String language;

    //用户权限
    @JsonProperty("privilege")
    private String[] privilege;

}
